import request from '@/utils/request.js'

//根据用户id获取基金信息
export function listUserEarningsByUserId(userId) {
    return request({
        url: '/api/java/UserEarnings/listUserEarningsByUserId/' + userId,
        //传递对象类型的参数需加请求头
        method: 'get',
    })
}
//根据用户id和阶段id查询用户收益
export function listUserEarningsByUserIdAndStageId(query) {
    return request({
        url: '/api/java/UserEarnings/listUserEarningsByUserIdAndStageId',
        //传递对象类型的参数需加请求头
        method: 'post',
        data: query
    })
}
